<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class DiseaseDetail
{
    public $login = false; //是否需要登录才能访问该接口
    public $title = "眼病文章详情";
    public $group = '眼病';
    public $desc = "";

    public $input = [
        'id' => 'required;int;label=id;',
    ];

    public $output = [
        'id' => 'label=id;',
        'title' => 'label=标题;',
        'othername' => 'label=其他名称;',
        'multiple' => 'label=多发群体;',
        'gaishu' => 'label=概述;',
        'bingyin' => 'label=病因;',
        'zhengzhuang' => 'label=症状;',
        'jiancha' => 'label=检查;',
        'zhiliao' => 'label=治疗;',
        'yufang' => 'label=预防;',
        'num' => 'label=阅读次数;',
    ];

    public function run($param, $uid)
    {
        $result = M('eyes_disease')->where(['id' => $param['id']])->find();
        return $result;
    }
}
